package cn.dliyy.warehouse.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.springframework.stereotype.Component;

import cn.dliyy.base.bean.IdAI;

@Entity
@Table
@Component
public class BUnit extends IdAI {
  private static final long serialVersionUID = 6839483676208192665L;
  @Column
  @Length(min = 1, max = 22)
  private String name;
  @Column
  private int rate;
  @Column
  @Length(min = 0, max = 5)
  private String symbol;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getRate() {
    return rate;
  }

  public void setRate(int rate) {
    this.rate = rate;
  }

  public String getSymbol() {
    return symbol;
  }

  public void setSymbol(String symbol) {
    this.symbol = symbol;
  }

}
